package cn.avalon.controller;

import cn.avalon.domain.Store;
import cn.avalon.service.StoreService;
import cn.avalon.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: Avalon
 * @date: 2022年09月19日 ： 22:11
 * @version: ver1.0
 * @email 709785494@qq.com
 */
@RestController
@RequestMapping("/store")
public class StoreController {

    @Autowired
    private StoreService storeService;

    @PostMapping
    public AjaxResult add(@RequestBody Store store) {

         return storeService.add(store);
    }
}
